package nc.bs.jdbc.processor;

import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import nc.jdbc.framework.processor.BaseProcessor;
import nc.jdbc.framework.processor.ProcessorUtils;

public class ListMapProcessor extends BaseProcessor{

	private static final long serialVersionUID = 7019048080730011799L;

	@Override
	public Object processResultSet(ResultSet rs)
			throws SQLException {
		List<Map<String,Object>> listmap = new ArrayList<Map<String,Object>>();
		while(rs.next()){
			Map<String, Object> map = ProcessorUtils.toMap(rs);
			listmap.add(map);
		}
		
		return listmap;
	}
	
	
	
}
